<%@ page import="org.xilin.Course" %>

<g:setProvider library="jquery"/>

<div class="bar">
  <span class="left">Class&nbsp;&nbsp;</span>
  <span class="left semester">
      Semester <x:semesterSelection semesterId="${session.activeSemester?.id}"/>
  </span>

  <span class="left">&nbsp;&nbsp;</span>
  <span class="left search">
      &nbsp;&nbsp;<x:search domainClass="${Course.class}"/>
  </span>

  <g:if test="${session.roles?.contains('ROLE_ADMIN')}">
    <span class="btn right">
      <a class="create" href="#" title="Add Class" rel="${request.contextPath}/course/create">Add Class</a>
    </span>
  </g:if>
</div>

<div class="searchResult">
    <g:render template="searchResult" model="['instanceList':instanceList]"/>  
</div>